package com.itstudio.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itstudio.portal.entity.Article;
import com.itstudio.portal.entity.AuthInfo;
import com.itstudio.portal.entity.RestResponse;
import com.itstudio.portal.mapper.ArticleMapper;
import com.itstudio.portal.mapper.AuthInfoMapper;
import com.itstudio.portal.service.AuthInfoService;
import com.itstudio.portal.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 文章管理Service业务层处理
 * 
 * @author 陈冲
 * @date 2024-11-16
 */
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticleService
{
    @Autowired
    private ArticleMapper articleMapper;


    @Override
    public Article selectArticleById(Long id) {

        LambdaQueryWrapper<Article> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Article::getId,id);
        return getOne(queryWrapper);
    }
}
